package com.code.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.code.entity.PageResult;
import com.code.entity.Result;
import com.code.pojo.Album;
import com.code.service.AlbumService;
import com.code.service.MenuService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("menu")
public class MenuController {

    @Reference
    MenuService menuService;

    @RequestMapping("init")
    public List<Map> findMenu(){
      return menuService.getMenuInfo();
    }
}


